/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.com.ugto.caadi.asistencias.dao;

import java.util.List;
import mx.com.ugto.caadi.asistencias.bean.Alumno;
import mx.com.ugto.caadi.asistencias.exception.DataAccessLayerException;

/**
 *
 * @author Maestria
 */
public class AlumnoDAO extends AbstractDao {

    public AlumnoDAO() {
        super();
    }

    /**
     * Insert a new alumno into the database.
     * @param alumno
     */
    public void create(Alumno alumno) throws DataAccessLayerException {
        super.create(alumno);
    }

    /**
     * Delete a detached alumno from the database.
     * @param alumno
     */
    public void delete(Alumno alumno) throws DataAccessLayerException {
        super.delete(alumno);
    }

    /**
     * Find an alumno by its primary key.
     * @param id
     * @return
     */
    public Alumno find(Integer id) throws DataAccessLayerException {
        return (Alumno) super.find(Alumno.class, id);
    }

    /**
     * Updates the state of a detached alumno.
     *
     * @param alumno
     */
    public void update(Alumno alumno) throws DataAccessLayerException {
        super.update(alumno);
    }

    /**
     * Finds all alumnos in the database.
     * @return
     */
    public List findAll() throws DataAccessLayerException {
        return super.findAll(Alumno.class);
    }
}
